package ooday04;

public abstract class DaNei {
    String name;
    int age;
    double salay;
     DaNei(String name,int age,double salay){
         this.name=name;
         this.age=age;
         this.salay=salay;
     }
     void sayHi(){
         System.out.println("我叫"+name+"，今年"+age+"岁，月薪"+salay);
     }
    void clockin(){
        System.out.println(name+"正在上班打卡");
    }
    void punchin(){
        System.out.println(name+"正在下班打卡");
    }

     abstract void work();

}

class director extends DaNei implements Work1, Work2 {
    director(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem1() {
        System.out.println(name+"正在解决企业问题");
    }
    public void problem2(){
        System.out.println(name+"正在培训员工");
    }
    public void problem3() { System.out.println(name+"正在编辑书籍");
    }
}

class lecturer extends DaNei implements Work1,Work2{
    lecturer(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem1() {
        System.out.println(name+"正在解决企业问题");
    }
    public void problem2(){
        System.out.println(name+"正在培训员工");
    }

    public void problem3() {
        System.out.println(name+"正在编辑书籍");
    }
}

class manager extends DaNei implements Work2{
    manager(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem3() {
        System.out.println(name+"正在编辑书籍");
    }
}

class teacher extends DaNei{
    teacher(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }
}